package com.maiji.cloud.service;

import com.maiji.cloud.entities.login.AreaInfo;
import com.maiji.cloud.entities.shopingmall.ProvinceCity;
import com.maiji.cloud.entities.shopingmall.RuleFreight;
import com.baomidou.mybatisplus.service.IService;
import com.maiji.cloud.request.ReqMetaData;
import com.maiji.cloud.response.BaseDataResDto;
import com.maiji.cloud.response.BaseMetaResDto;
import com.maiji.cloud.response.BaseResDto;
import com.maiji.cloud.response.shopingmall.ShopingOrderResData;

import java.util.List;

public interface RuleFreightService extends IService<RuleFreight> {

    public static final String REDISNAMESPACE = "ruleFreight";

    BaseMetaResDto<List<RuleFreight>> findAllRuleFreights(RuleFreight delivery, ReqMetaData metaData);

    BaseResDto add_updRuleFreight(RuleFreight ruleFreight);

    BaseDataResDto<List<ProvinceCity>> findAllProvinceCity();

    RuleFreight findAllRuleFreightsByOrder(ShopingOrderResData shopingOrderResData, AreaInfo areaInfo, String rfId);
}
